package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class ConsignmentRecordVO {
    @ApiModelProperty("原始订单 id，必填")
    private String orderId;

    @ApiModelProperty("藏品名称，必填")
    private String itemName;

    @ApiModelProperty("藏品编号，必填")
    private String itemNo;

    @ApiModelProperty("藏品图片，必填")
    private String itemImg;

    @ApiModelProperty("寄售价格（单位为分），必填")
    private Integer priceFen;

    @ApiModelProperty("卖家 id")
    private String sellerId;

    @ApiModelProperty("卖家昵称")
    private String sellerName;

    @ApiModelProperty("卖家地址")
    private String sellerAddress;

    @ApiModelProperty("挂单时间")
    private Long orderTime;

    @ApiModelProperty("当前订单状态，必填，0 = 其它， 1 = 寄售， 2 = 锁定")
    private Integer status;

    public void setOrderTime(Date orderTime) {
        // orderTime 转换为毫秒
        this.orderTime = orderTime.getTime();
    }
}
